import {SimpleModel} from "../../framework/model/SimpleModel.ts";
import {Sprite, SpriteMaterial} from "three";

export class LogoSprite extends SimpleModel {
    constructor() {
        super("LogoSprite")
    }
    init(logo: string) {
        let texture = this.modelStore?.getTexture(logo)
        let mat = new SpriteMaterial({
            map: texture,
        })
        let sp = new Sprite(mat)
        sp.scale.set(3,1.8,3)

        this.scene?.add(sp)
    }
}